<html>

<head>
<title>Forms SectionPart Wizard</title>
<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>

<table border="0" cellpadding="0" cellspacing="0" width="700">
  <tr>
    <td><h1>Forms SectionPart Wizard</h1>
      <div align="left">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td valign="top">
			<img src="images/wizard_forms_sectionpart0.gif" align="left" hspace="10">Subclasses of the Eclipse Forms <b>SectionPart</b> class can be
              created using the <b>Forms SectionPart </b>wizard. The wizard can be
              selected from the drop down Designer wizard menu or from the
              Eclipse <b>New</b> wizard.
              <p>To use the wizard, select the project source folder and package
              to contain the class. Then enter the class name and hit the <b>Finish</b>
              button.
              <p>For more information on using Eclipse Forms, see the <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/pde-ui-home/working/EclipseForms/EclipseForms.html">Eclipse
              Forms Programming Guide</a>. </td>
          </tr>
        </table>
      </div>
      <p><img src="images/wizard_forms_sectionpart1.gif">&nbsp;
      <img src="images/wizard_forms_sectionpart2.gif"></p>
      <p>The wizard generates the following code.</p>
                <dl>
                  <dd>
			<font face="Courier" size="2" color="#7f0055"><b>import</b></font><font face="Courier New" size="2"> 
			org.eclipse.swt.widgets.Composite;<br>
			</font><font face="Courier" size="2" color="#7f0055"><b>import</b></font><font face="Courier New" size="2"> 
			org.eclipse.ui.forms.SectionPart;<br>
			</font><font face="Courier" size="2" color="#7f0055"><b>import</b></font><font face="Courier New" size="2"> 
			org.eclipse.ui.forms.widgets.FormToolkit;<br>
			</font><font face="Courier" size="2" color="#7f0055"><b>import</b></font><font face="Courier New" size="2"> 
			org.eclipse.ui.forms.widgets.Section;<br>
			<br>
			</font><font face="Courier" size="2" color="#7f0055"><b>public</b></font><font face="Courier New" size="2">
			</font><font face="Courier" size="2" color="#7f0055"><b>class</b></font><font face="Courier New" size="2"> 
			FormsSectionPart </font>
			<font face="Courier" size="2" color="#7f0055"><b>extends</b></font><font face="Courier New" size="2"> 
			SectionPart {<br>
&nbsp;&nbsp;&nbsp; </font><font face="Courier" size="2" color="#7f0055"><b>
			public</b></font><font face="Courier New" size="2"> 
			FormsSectionPart(Composite parent, FormToolkit toolkit, int style) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
			<font face="Courier" size="2" color="#7f0055"><b>super</b></font><font face="Courier New" size="2">(parent, 
			toolkit, style);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; createClient(getSection(), toolkit);<br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; </font><font face="Courier" size="2" color="#7f0055"><b>
			private</b></font><font face="Courier New" size="2"> </font>
			<font face="Courier" size="2" color="#7f0055"><b>void</b></font><font face="Courier New" size="2"> 
			createClient(Section section, FormToolkit toolkit) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; section.setText(</font><font size="2" color="#2a00ff" face="Courier">&quot;New 
			SectionPart&quot;</font><font face="Courier New" size="2">);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Composite container = 
			toolkit.createComposite(section);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; section.setClient(container);<br>
&nbsp;&nbsp;&nbsp; }<br>
			}</font></dd>
                </dl>
      <o:p>
      <p>When editing Eclipse Forms SectionParts, a set of specialized
		<a href="../../palettes/swt_palette.html#EclipseForms">Eclipse Forms widgets</a> is available with their own unique widget palette.
                    These widgets provide the &quot;flat&quot; look that is a
                    signature element of the Eclipse Forms API. Standard
      widgets and layout managers can also be used although they won't use the
                    flat look.</p>
      <div align="left">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">&nbsp;<img src="images/wizard_forms_sectionpart3.gif"></td>
          </tr>
        </table>
      </div>
      </td>
  </tr>
</table>
</body>
</html>
